#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#


print([i for i in range(1, 11)])

print(sum([i for i in range(1, 101)]))
print(sum([i for i in range(1, 101) if i % 2 == 1]))
print(sum([i for i in range(1, 101) if i % 2 == 0]))


def jie(num):
    y, z = 0, 0
    if num == 0: return 0
    if num % 2 == 0:
        y = num
    else:
        z = num
    return jie(num - 1) - y + z


print(jie(100))


# print(sum([i for i in range(1, 10)]))

# def test(n):
#     if n == 0: return 10
#     return test(n-1) + 1
#
# print(test(5))



print(jie(100))
